package hu.uniobuda.nik.openday;

import hu.uniobuda.nik.openday.utils.Config;
import hu.uniobuda.nik.openday.utils.Utils;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class InfoActivity extends Activity{

	Button infoFelveteli2012,
		   infoFelveteliEljaras,
		   infoNeumannKar,
		   infoObudaiEgyetem,
		   infoIrjNekunk;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.info);		
	
		infoFelveteli2012 = (Button)findViewById(R.id.infoFelveteli2012);
		infoFelveteli2012.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Utils.openInBrowser(InfoActivity.this, Config.URL_FELVETELI_2012);
			}
		});
		
		infoFelveteliEljaras = (Button)findViewById(R.id.infoFelveteliEljaras);
		infoFelveteliEljaras.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Utils.openInBrowser(InfoActivity.this, Config.URL_FELVETELI_ELJARAS);
			}
		});
		
		infoNeumannKar = (Button)findViewById(R.id.infoNeumannKar);
		infoNeumannKar.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Utils.openInBrowser(InfoActivity.this, Config.URL_NEUMANN_KAR);
			}
		});
		
		infoObudaiEgyetem = (Button)findViewById(R.id.infoObudaiEgyetem);
		infoObudaiEgyetem.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Utils.openInBrowser(InfoActivity.this, Config.URL_OBUDAI_EGYETEM);
			}
		});
		
		infoIrjNekunk = (Button)findViewById(R.id.infoIrjNekunk);
		infoIrjNekunk.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Utils.sendEmail(InfoActivity.this, "", "", new String[]{"info@nik.uni-obuda.hu"});
			}
		});
	}
	
}
